package com.jtspgl.service.impl;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jtspgl.dao.UserDao;
import com.jtspgl.service.UserService;

@Service("userServiceImpl")
public class UserServiceImpl implements UserService{

	@Autowired
	private UserDao userDao;
	
	@Override
	public Map<String, Object> getUserInfo(Integer id) throws Exception {
		Map<String, Object> result = new HashMap<String, Object>();
		result.put("user", this.userDao.selectUserInfo(id));
		return result;
	}

}
